import request from '@/utils/request'

export function getAlldoctros() {
  return request({
    url: 'doctros/select',
    method: 'get',
  })
}

export function createddoctros(data) {
  return request({
    url: 'doctros/create',
    method: 'post',
    data: data
  })
}

export function updatedoctros(id,data) {
  return request({
    url: 'doctros/update/'+id,
    method: 'put',
    data: data
  })
}

export function deletedoctros(id) {
  return request({
    url: 'doctros/delete/' + id,
    method: 'delete'
  })
}
